package com.newlink.building.main.ui

import android.view.View
import com.newlink.building.common_base.base.NL_BaseActivity
import com.newlink.building.common_base.ext.showToast
import com.newlink.building.main.R
import com.newlink.building.main.databinding.ActivityLogExportBinding

/**
 * Created by xiaodong on 2022/10/6.
 */
class Module_Main_LogExportActivityNL : NL_BaseActivity(), View.OnClickListener {
    //    override fun attachLayoutRes(): Int = R.layout.activity_log_export
    private lateinit var mBinding: ActivityLogExportBinding
    override fun attachLayoutRes(): View {
        mBinding = ActivityLogExportBinding.inflate(layoutInflater)
        return mBinding.root
    }

    override fun initData() {
    }

    override fun initView() {
        mBinding.titlebarLogExport.titleCenterTitlebar.text =
            resources.getString(R.string.device_setting_export_log)
        mBinding.titlebarLogExport.backTitlebar.setOnClickListener(this)
        mBinding.btnExport.setOnClickListener(this)
    }

    override fun onClick(v: View) {
        when (v.id) {
            R.id.back_titlebar -> finish()
            R.id.btn_export -> showToast(resources.getString(R.string.log_export_failed))
        }
    }
}